# -*- coding: utf-8 -*-
"""
author:码同学 极光
date:2023-01-09
desc: 
sample: 
"""


def sendEmail(title, msg):
    pass


def sendWeixin(title, msg):
    pass


# 消息 动态语言
# 封装（方法，和属性）
class Message:
    def sendEmail(self, to, msg):
        # 属性
        self.type = '邮件'
        self.to = to
        self.msg = msg
        print(f"{to},{msg}")

        # 方法

    def sendWeixin(self):
        self.type = '微信'
        print(f"{self.addr1},{self.addr2},{self.addr3}")


msg = Message()
msg.addr1 = "上海"
msg.addr2 = "北京"
msg.addr3 = "杭州"
msg.sendEmail("2799797@qq.com", "消息")
msg.sendWeixin()
print(msg.type)
